Parameters, Local Variables, and Overloading: Parameters, Local Variables, and Overloading | 您所在的位置:网站首页 › formal parameter list › Parameters, Local Variables, and Overloading: Parameters, Local Variables, and Overloading |
This chapter reviews method parameters and local variables, as well as method overloading and method signature. Method overloading means two or more methods have the same name but have different parameter lists: either a different number of parameters or different types of parameters. When a method is called, the corresponding method is invoked by matching the arguments in the call to the parameter lists of the methods. The name together with the number and types of a method's parameter list is called the signature of a method. The return type itself is not part of the signature of a method. |
CopyRight 2018-2019 实验室设备网 版权所有 |